package com.cf.dao;

import com.cf.entity.Advert;
import com.cf.entity.Item;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface AdvertDao {
    //查询所有
    public List<Advert> selectAdvert(Map map);
    //逻辑删除
    public int deletetAdvert(long adid);
    //未通过
    public List<Advert> selectAdvertIsdel(Map map);
    //通过
    public int deletetAdvertIsdel(@Param("starttime") Date starttime,@Param("endtime") Date endtime,@Param("adid") long adid);
    //添加数据
    public int insertAdvert(Advert advert);
    //真逻辑查询
    public List<Advert> selectByStatus();
    //根据广告表查询所有的项目
    public List<Item> selectItemByAdvert();
}
